<template>
	<view class="all">
		<view class="text">
			已绑定手机号：<text style="color: #5398F6;">{{phone}}</text>
		</view>
		<view class="btn" @click="toChangePhone">
			更改手机号
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				phone:""
			};
		},
		onShow() {
			try {
				const value = uni.getStorageSync('phone');
				if (value) {
					this.phone=value
				}
			} catch (e) {
				// error
			}
		},
		methods:{
			toChangePhone(){
				uni.navigateTo({
					url:'/pages/my/setting/binding/changePhone'
				})
			}
		},
		}
</script>

<style lang="scss" scoped>
	.all{
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
		.text{
			font-size: 40rpx;
			font-weight: bold;
			color: #242424;
			margin-top: 350rpx;
		}
		.btn{
			width: 462rpx;
			height: 88rpx;
			background: #5398F6;
			border-radius: 44rpx;
			line-height:88rpx;
			text-align: center;
			margin-top: 100rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: #FFFFFF;
		}
	}
</style>
